\fc0 The documentation is not explicit on this point, but the file must already exist for
\b NXMapFile()
\b0 to return a valid stream. As the name of the function indicates, it maps the file into a memory stream. If the file doesn't exist, you can't very well map it. If you want to open a memory stream to write to and later save to that path, you can use